package ncov.model;

/**
 * 分页查询实体
 * @author WuChangJian
 * @date 2020/6/13 9:04
 */
public class PageModel {
    private Integer currentGradeId; // 当前班级ID
    private Integer currentPage;    // 起始页码
    private Integer count;          // 页面容量
    private Integer submitted;      // 上报情况：-1 所有 0 上报 1 未上报
    private String searchKey;       // 搜索关键词

    public PageModel() {
    }

    public PageModel(Integer currentGradeId, Integer currentPage, Integer count, Integer submitted, String searchKey) {
        this.currentGradeId = currentGradeId;
        this.currentPage = currentPage;
        this.count = count;
        this.submitted = submitted;
        this.searchKey = searchKey;
    }

    public Integer getCurrentGradeId() {
        return currentGradeId;
    }

    public void setCurrentGradeId(Integer currentGradeId) {
        this.currentGradeId = currentGradeId;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getSubmitted() {
        return submitted;
    }

    public void setSubmitted(Integer submitted) {
        this.submitted = submitted;
    }

    public String getSearchKey() {
        return searchKey;
    }

    public void setSearchKey(String searchKey) {
        this.searchKey = searchKey;
    }

    @Override
    public String toString() {
        return "PageModel{" +
                "currentGradeId=" + currentGradeId +
                ", currentPage=" + currentPage +
                ", count=" + count +
                ", submitted=" + submitted +
                ", searchKey='" + searchKey + '\'' +
                '}';
    }
}
